package ru.spb.nicetu.jdbc;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by dchernyshov on 24.03.15.
 */
@Entity
@Table (name="myschema.pets")
public class Pet {
    @Id
    @Column (name = "id")
    private int petsId;
    @Column (name = "nick")
    private String petName;
    @Column (name = "owner")
    private int ownerId;
    @Column (name = "kind")
    private int kindId;

    public int getPetsId() {
        return petsId;
    }

    public void setPetsId(int petsId) {
        this.petsId = petsId;
    }

    public String getPetName() {
        return petName;
    }

    public void setPetName(String petName) {
        this.petName = petName;
    }

    public int getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(int ownerId) {
        this.ownerId = ownerId;
    }

    public int getKindId() {
        return kindId;
    }

    public void setKindId(int kindId) {
        this.kindId = kindId;
    }
}
